package com.qys.livesMall.open.controller.sys;


import com.qys.livesMall.common.result.R;
import com.qys.livesMall.open.modal.dto.mail.EditMailConfig;
import com.qys.livesMall.open.service.H2MailConfigService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  后台管理-邮箱配置
 * </p>
 *
 * @author wzy
 * @since 2023-04-23
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/web/mail-config")
public class H2MailConfigController {


    private final H2MailConfigService mailConfigService;


    /**
     * 修改mail配置信息
     * @param config
     * @return
     */
    @PutMapping(value = "/put")
    public R<?> put(@RequestBody EditMailConfig config) {
        return mailConfigService.edit(config);
    }


}
